package com.basic.business.clickFarmingRecord.domain;

import java.math.BigDecimal;
import java.util.Date;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.basic.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import com.basic.common.utils.StringUtils;
import com.basic.common.utils.uuid.ULID;

/**
 * 刷单数据记录对象 t_click_farming_record
 *
 * @author zhaoxy_jn@163.com
 * @date 2025-07-03
 */
@Getter
@Setter
@ExcelIgnoreUnannotated
public class TClickFarmingRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 商品id */
    @ExcelProperty(value = "商品id")
    private String goodsId;

    /** 统计日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "统计日期")
    private Date statDate;

    /** 支付金额 */
    @ExcelProperty(value = "支付金额")
    private BigDecimal payAmount;

    /** 状态 正常：NORMAL 删除：DELETED */
    @ExcelProperty(value = "状态 正常：NORMAL 删除：DELETED")
    private String status;

    public void setId(String id) {
        this.id = StringUtils.isNotEmpty(id) ? id : ULID.getId();
    }
}
